package com.onlyxiahui.extend.query.hibernate.syntax.util;

import com.onlyxiahui.extend.query.hibernate.syntax.annotation.Bracket;
import com.onlyxiahui.extend.query.hibernate.syntax.annotation.Condition;
import com.onlyxiahui.extend.query.hibernate.syntax.annotation.Like;
import com.onlyxiahui.extend.query.hibernate.syntax.annotation.OrderBy;

/**
 * Description <br>
 * Date 2020-05-26 17:07:43<br>
 * 
 * @author XiaHui [onlovexiahui@qq.com]<br>
 * @since 1.0.0
 */
@OrderBy(value = { "number" }, sort = "desc")
public class LikeQuery {

	private String name;
	private String number;

	@Bracket(group = "3")
	@Like()
	@Condition(equation = "like", column = "name")
	@Condition(equation = "like", column = "cast($.number as string)")
	private String text;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getNumber() {
		return number;
	}

	public void setNumber(String number) {
		this.number = number;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}
}
